Optimal. Leaf size=62 \[ \frac{1}{4} x e^{-a \sqrt{-\frac{1}{n^2}} n} \left (c x^n\right )^{\frac{1}{n}}+\frac{1}{2} x e^{a \sqrt{-\frac{1}{n^2}} n} \log (x) \left (c x^n\right )^{-1/n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0448417, antiderivative size = 62, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {4484, 4490} \[ \frac{1}{4} x e^{-a \sqrt{-\frac{1}{n^2}} n} \left (c x^n\right )^{\frac{1}{n}}+\frac{1}{2} x e^{a \sqrt{-\frac{1}{n^2}} n} \log (x) \left (c x^n\right )^{-1/n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4484
Rule 4490
Rubi steps
\begin{align*} \int \cos \left (a+\sqrt{-\frac{1}{n^2}} \log \left (c x^n\right )\right ) \, dx &=\frac{\left (x \left (c x^n\right )^{-1/n}\right ) \operatorname{Subst}\left (\int x^{-1+\frac{1}{n}} \cos \left (a+\sqrt{-\frac{1}{n^2}} \log (x)\right ) \, dx,x,c x^n\right )}{n}\\ &=\frac{\left (x \left (c x^n\right )^{-1/n}\right ) \operatorname{Subst}\left (\int \left (\frac{e^{a \sqrt{-\frac{1}{n^2}} n}}{x}+e^{-a \sqrt{-\frac{1}{n^2}} n} x^{-1+\frac{2}{n}}\right ) \, dx,x,c x^n\right )}{2 n}\\ &=\frac{1}{4} e^{-a \sqrt{-\frac{1}{n^2}} n} x \left (c x^n\right )^{\frac{1}{n}}+\frac{1}{2} e^{a \sqrt{-\frac{1}{n^2}} n} x \left (c x^n\right )^{-1/n} \log (x)\\ \end{align*}
Mathematica [F] time = 0.0857273, size = 0, normalized size = 0. \[ \int \cos \left (a+\sqrt{-\frac{1}{n^2}} \log \left (c x^n\right )\right ) \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.117, size = 0, normalized size = 0. \begin{align*} \int \cos \left ( a+\ln \left ( c{x}^{n} \right ) \sqrt{-{n}^{-2}} \right ) \, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.11668, size = 39, normalized size = 0.63 \begin{align*} \frac{c^{\frac{2}{n}} x^{2} \cos \left (a\right ) + 2 \, \cos \left (a\right ) \log \left (x\right )}{4 \, c^{\left (\frac{1}{n}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] time = 0.472266, size = 96, normalized size = 1.55 \begin{align*} \frac{1}{4} \,{\left (x^{2} + 2 \, e^{\left (\frac{2 \,{\left (i \, a n - \log \left (c\right )\right )}}{n}\right )} \log \left (x\right )\right )} e^{\left (-\frac{i \, a n - \log \left (c\right )}{n}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \cos{\left (a + \sqrt{- \frac{1}{n^{2}}} \log{\left (c x^{n} \right )} \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.28404, size = 1, normalized size = 0.02 \begin{align*} +\infty \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]